package execute

import (
	router2 "Short_chain_cats/shortlink/router"
	"Short_chain_cats/user/router"
	"net/http"

	"github.com/gin-gonic/gin"
)

func RegisterRoute(server *gin.Engine) {
	server.GET("/", func(ctx *gin.Context) {
		ctx.String(http.StatusOK, "short_chain_cats web")
	})
	v1 := server.Group("/v1")
	router2.RegisterShortLinkRoute(v1)
	v2 := server.Group("/v1")
	router.RegisterUserRoute(v2)
	v3 := server.Group("/admin")
	router.RegisterManagerRoute(v3)
}
